﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;
using System.Net.Sockets;

namespace ggprot
{
    public class GGXmlAction : GGHeader
    {
        private string data;

        public string Data
        {
            get { return data; }
            set { data = value; }
        }

        public GGXmlAction(GGHeader Base)
        {
            this.Type = Base.Type;
            this.Length = Base.Length;
        }

        public override void Read(NetworkStream stream)
        {
            BinaryReader reader = new BinaryReader(stream);

            data = string.Concat(reader.ReadChars(Length));
        }
    }
}
